﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;


namespace EZCRS.HCMS.Entity
{
    #region HCRS_Airport
    /// <summary>
    /// 机场距离信息
    /// </summary>
    public class HCRS_Airport
    {
        private int? _id;
        private int? _property_id;
        private string _airportTrans = String.Empty;
        private string _airports = String.Empty;
        private string _airportDirection = String.Empty;
        private int? _airportDistance;
        private string _airportUnits = String.Empty;

        public HCRS_Airport()
        {
        }

        public HCRS_Airport(DataRow dr)
        {
            if (dr != null)
            {
                _id = Convert.ToInt32(dr["airport_id"].ToString());
                _property_id = Convert.ToInt32(dr["property_id"].ToString());
                _airportTrans = dr["airporttrans"].ToString();
                _airports = dr["airports"].ToString();
                _airportDirection = dr["airportdirection"].ToString();
                _airportDistance = (dr["airportdistance"].ToString()!="") ? Convert.ToInt32(dr["airportdistance"].ToString()) : 0;
                _airportUnits = dr["airportunits"].ToString();
            }
        }

        

        #region Public Properties
        [DataFieldAttribute("airport_id", "pk")]
        public int? Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public int? Property_id
        {
            get { return _property_id; }
            set { _property_id = value; }
        }

        public string AirportTrans
        {
            get { return _airportTrans; }
            set { _airportTrans = value; }
        }

        public string Airports
        {
            get { return _airports; }
            set { _airports = value; }
        }

        public string AirportDirection
        {
            get { return _airportDirection; }
            set { _airportDirection = value; }
        }

        public int? AirportDistance
        {
            get { return _airportDistance; }
            set { _airportDistance = value; }
        }

        public string AirportUnits
        {
            get { return _airportUnits; }
            set { _airportUnits = value; }
        }
        #endregion
    }
    #endregion
}
